package com.lablzh.gdxy.repository.admin;

import com.lablzh.gdxy.entity.admin.Parameter;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ParameterRepository extends JpaRepository<Parameter,Integer> {
    Parameter findByGradeAndCourseCategoryAndCollege(String grade, String courseCategory, String college);
    Parameter findByCollegeAndGradeAndType(String college, String grade, String type);
    Parameter findByCollegeAndGradeAndTypeAndCourseCategory(String college, String grade, String type, String courseCategory);
    List<Parameter> findAllByCourseCategory(String courseCategory, Sort sort);

    Parameter findByCourseMiniCategory(String courseMiniCategory);
}
